﻿using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 编号规则
    /// </summary>
    [Comment("编号规则表")]
    public class SerialNumberRules : DEntityTenant
    {
        /// <summary>
        /// 业务类型
        /// </summary>
        [Comment("业务类型")]
        public BusinessType BusinessType { get; set; }

        /// <summary>
        /// 业务前缀
        /// </summary>
        [Comment("业务前缀")]
        public string Prefix { get; set; }

        /// <summary>
        /// 日期格式
        /// </summary>
        [Comment("日期格式")]
        public RulesDateType RulesDateType { get; set; }

        /// <summary>
        /// 流水号位数
        /// </summary>
        [Comment("流水号位数")]
        public int Digit { get; set; }

        /// <summary>
        /// 编号生成规则
        /// </summary>
        [Comment("编号生成规则")]
        public string RulesText { get; set; }
    }
}
